import { http } from "@/utils/http";

export type ResultType = ReplaceTargetType<any[]>;

export const getExpandGraphData = (query: any) => {
  return http.request<ResultType>({
    url: "/nebulaApi/path_search/get_info",
    method: "post",
    data: {
      ...query,
    },
  });
};

// 查询所有边类型tag
export const queryEdge = (space: string) => {
  return http.request<ResultType>({
    url: "/nebulaApi/space/queryEdge",
    method: "get",
    params: {
      space,
    },
  });
};
